package com.egide.chat;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.Menu;

import com.egide.CollectionPagerAdapter;
import com.egide.R;

public class ChatActivity extends FragmentActivity {
	public final static String EXTRA_MESSAGE = "com.egide.MESSAGE";
	
	CollectionPagerAdapter collectionPagerAdapter;
    ViewPager viewPager;
    
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_chat);
		
		setContentView(R.layout.activity_main);
		
		 collectionPagerAdapter = new CollectionPagerAdapter(getSupportFragmentManager());
		 
		 viewPager = (ViewPager) findViewById(R.id.pager);
	     
		 viewPager.setAdapter(collectionPagerAdapter);
		 
		 //viewPager.setCurrentItem(3);
	  
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_chat, menu);
		return true;
	}

}
